package crawler.proxy;

/**
 * USER: lintc 【lintiancong@zhuojianchina.com】
 * DATE: 2017-09-11 11:27
 */
public class Proxy {
    private String ip;

    private String port;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String toString() {
        return ip + ":" + port;
    }

    public boolean equals(Object proxy) {
        System.out.println(proxy);
        return (proxy.toString().equals(this.toString()));
    }
}
